.home {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.home .home-header {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.home .home-footer {
  width: 100%;
  height: 56px;
  display: flex;
  justify-content: space-between;
}

.home .home-footer div {
  text-align: center;
  align-items: center;
}

.home .home-main {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  background: #f9f9f9;
}

/* 底部导航 */
.home .home-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #eee;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
}

.home .home-footer .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
  font-size: 12px;
}

.home .home-footer .tab .tab-icon {
  width: 25px;
  font-size: 20px;
  line-height: 22px;
}

.home .home-footer .tab .tab-label {
  margin-top: 4px;
}

.home .home-footer .center-btn {
  position: relative;
  width: 64px;
  height: 64px;
  margin-top: -24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4bb0ff, #2d8cf0);
  box-shadow: 0 6px 18px rgba(45, 140, 240, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .home-footer .center-btn .center-inner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #2d8cf0;
}

.home-main-swiper {
  width: 100%;
  /* height: 100px; */
}

.home-main-title {
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  margin: 5px 0;
}

.home-main-know {
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: space-between;
}

.home-main-know>div {
  width: 49%;
  height: 100%;
  border: 1px solid #cccccc;
}

.home-department {
  width: 100%;
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.home-department>div {
  width: 25%;
  height: 100px;
  text-align: center;
  /* border: 1px solid #cccccc; */
}

.home-department>div .adm-image {
  display: inline-block;
}

.home-consultation {
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  margin: 5px 0;
}


.home-consultation-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid #cccccc;
}

.home-consultation-tabs>div {
  width: 20%;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.home-consultation-content {
  width: 100%;
  background: #fff;
  overflow-x: hidden;
}

.consultation-item {
  width: 100%;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.consultation-item-single {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consultation-item-image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
}

.consultation-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.consultation-item-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  word-wrap: break-word;
}

.consultation-item-author {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.consultation-item-time {
  font-size: 12px;
  color: #999;
}

.consultation-item-triple {
  width: 100%;
}

.consultation-item-images {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.consultation-item-images .adm-image {
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  width: 80px;
  height: 80px;
  /* object-fit: cover; */
}

.consultation-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.consultation-item-no-image {
  width: 100%;
}

.consultation-item-no-image .consultation-item-title {
  margin-bottom: 8px;
}

.consultation-item-no-image .consultation-item-meta {
  margin-top: 8px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .consultation-item {
    padding: 12px;
  }

  .consultation-item-single {
    gap: 10px;
  }

  .consultation-item-image .adm-image {
    width: 100px;
    height: 70px;
  }

  .consultation-item-title {
    font-size: 15px;
  }

  .consultation-item-images .adm-image {
    width: 70px;
    height: 70px;
  }

  .consultation-item-author,
  .consultation-item-time {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .consultation-item {
    padding: 10px;
  }

  .consultation-item-image .adm-image {
    width: 90px;
    height: 60px;
  }

  .consultation-item-title {
    font-size: 14px;
  }

  .consultation-item-images .adm-image {
    width: 60px;
    height: 60px;
  }
}

.home-main-one {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  margin-top: 10px;
}

.outpatient-registration-btn,
.outpatient-payment-btn {
  flex: 1;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.outpatient-registration-btn {
  background: linear-gradient(135deg, #1890ff, #096dd9);
}

.outpatient-payment-btn {
  background: linear-gradient(135deg, #13c2c2, #08979c);
}

.outpatient-registration-btn:hover,
.outpatient-payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 4px;
}

.btn-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.2;
}